const mongoose=require('./db')

const UserSchema=new mongoose.Schema({
    username:String,
    password:String
})

const WenjiSchema=new mongoose.Schema({
    Ftitle:String,
    Stitle:Array,
    content:Array
})

const UserModel=mongoose.model('user',UserSchema,'user')

const WenjiModel=mongoose.model('wenji',WenjiSchema,'wenji')

module.exports={
    UserModel,
    WenjiModel
}